package topSort;

import java.util.ArrayList;

/**
 * 
 * @author benny
 *
 */
public abstract class AdjacencyStructure {

	protected Graph _g; // reference back to the graph

	/*
	 * Two types
	 */
	public enum Type {
		MATRIX, LIST
	}

	protected AdjacencyStructure(Graph g) {

		_g = g;

	}

	abstract ArrayList<Vertice> getNeighbours(int key);

	protected void print() {

		System.out.println("" + getClass().getSimpleName());

	}
}
